package com.spring.shopping.mapper;

import com.spring.shopping.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/*
 * @Coding By ZTK:
 */

public interface ProductMapper {
    void insertProduct(Product product);
    List<Product> selectAllProducts();
    Product selectProductById(@Param("id") Integer id);
    List<Product> selectProductsByUserId(Integer userId);
    List<Product> selectProductsByCategory(String category);
}